import {combineReducers,createStore,applyMiddleware,compose} from "redux";
import {User} from "./redux/user.redux";
import thunk from 'redux-thunk';

//用于chrome redux的扩展项
const reduxExtension=window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__();

let reducer=combineReducers({User});
let store=createStore(reducer,compose(applyMiddleware(thunk),reduxExtension));

export default store;
